from django.db import models

# Create your models here.
class IDCardInfo(models.Model):
    user_id = models.BigAutoField(primary_key=True)
    card_id = models.CharField(max_length=20)
    data = models.BigIntegerField()
    status = models.IntegerField(default=1)


class GoodsInfo(models.Model):
    id=models.BigAutoField(primary_key=True)
    goods_name=models.CharField(max_length=20)
    price=models.IntegerField()
    amount=models.IntegerField()

class HistoryInfo(models.Model):
    hisid=models.BigAutoField(primary_key=True)
    card_id=models.CharField(max_length=20)
    goods_name=models.CharField(max_length=20)
    time=models.DateTimeField()